/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
// popularize
const popularizeRouter = {
  path: '/popularize',
  hidden: false,
  component: Layout,
  redirect: 'noRedirect',
  name: '广告/媒介',
  meta: {
    title: '广告/媒介',
    icon: 'component',
    roles: ['market']
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/popularize/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'documentation',
      component: () => import('@/views/popularize/index'),
      name: '软文',
      meta: { title: '软文' },
      children:[
        {
          path: 'documentation',
          component: () => import('@/views/popularize/documentation/documentation'),
          name: '文章',
          meta: { title: '文章' }
        },
        {
          path: 'documentation-add',
          component: () => import('@/views/popularize/documentation/documentation-add'),
          name: '新文章',
          hidden:true,
          meta: { title: '新文章' }
        },
        {
          path: 'documentation-detail',
          component: () => import('@/views/popularize/documentation/documentation-detail'),
          name: '新文章',
          hidden:true,
          meta: { title: '新文章' }
        },
        {
          path: 'column',
          component: () => import('@/views/popularize/column/column'),
          name: '栏目',
          meta: { title: '栏目' }
        },
        {
          path: 'column-add',
          component: () => import('@/views/popularize/column/column-add'),
          name: '新栏目',
          hidden:true,
          meta: { title: '新栏目' }
        },
        {
          path: 'column-detail',
          component: () => import('@/views/popularize/column/column-detail'),
          name: '新栏目',
          hidden:true,
          meta: { title: '新栏目' }
        },

      ]
    },
    {
      path: 'blackboard',
      component: () => import('@/views/popularize/blackboard/blackboard'),
      name: '广告',
      meta: { title: '广告' }
    },
    {
      path: 'blackboard-add',
      component: () => import('@/views/popularize/blackboard/blackboard-add'),
      name: '新广告',
      hidden:true,
      meta: { title: '新广告' }
    },
    {
      path: 'location',
      component: () => import('@/views/popularize/location/location'),
      name: '广告位',
      meta: { title: '广告位' }
    },
    {
      path: 'location-add',
      component: () => import('@/views/popularize/location/location-add'),
      name: '新广告位',
      hidden:true,
      meta: { title: '新广告位' }
    },
    {
      path: 'propelling',
      component: () => import('@/views/popularize/propelling/propelling'),
      name: '投放',
      meta: { title: '投放' }
    },
    {
      path: 'propelling-add',
      component: () => import('@/views/popularize/propelling/propelling-add'),
      name: '新投放',
      hidden:true,
      meta: { title: '新投放' }
    },
    {
      path: 'thoroughfare',
      component: () => import('@/views/popularize/index'),
      name: '渠道',
      meta: { title: '渠道' },
      children:[
        {
          path: 'platform',
          component: () => import('@/views/popularize/platform/platform'),
          name: '平台',
          meta: { title: '平台' }
        },
        {
          path: 'platform-add',
          component: () => import('@/views/popularize/platform/platform-add'),
          hidden: true,
          name: '新平台',
          meta: { title: '新平台' }
        },
        {
          path: 'subscriber',
          component: () => import('@/views/popularize/subscriber/subscriber'),
          name: '账户',
          meta: { title: '账户' }
        },
        {
          path: 'subscriber-add',
          component: () => import('@/views/popularize/subscriber/subscriber-add'),
          name: '新账户',
          hidden: true,
          meta: { title: '新账户' }
        },
        {
          path: 'subscriber-detail',
          component: () => import('@/views/popularize/subscriber/subscriber-add'),
          name: '新账户',
          hidden: true,
          meta: { title: '新账户' }
        }

      ]
    },
    

  ]
}

export default popularizeRouter
